export let columns = [
    {
        title: '生产订单编号',
        dataIndex: 'code',
        ellipsis: true,
        fixed: 'left',
        width: 200,
        searchIndex: 'code',
        scopedSlots: {
            filterDropdown: 'searchDropdown',
            filterIcon: 'searchIcon',
            customRender: 'code',
        },
    },
    {
        title: '生产负责人',
        dataIndex: 'chargeUserIdText',
        ellipsis: true,
        fixed: 'left',
        width: 180,
        searchIndex: 'chargeUserId',
        multi: true,
        scopedSlots: {
            filterDropdown: 'selectPeople',
            filterIcon: 'dateIcon',
            customRender: 'chargeUserIdText',
        },
    },
    {
        title: '工艺路线',
        dataIndex: 'craftName',
        ellipsis: true,
        fixed: 'left',
        width: 180,
        searchIndex: 'craftName',
        scopedSlots: {
            filterDropdown: 'searchDropdown',
            filterIcon: 'searchIcon',
            customRender: 'craftName'
        },
    },
    {
        title: '计划生产时间',
        dataIndex: 'planProductTime',
        ellipsis: true,
        fixed: 'left',
        width: 180,
        searchIndex: 'planProductTime',
        scopedSlots: {
            filterDropdown: 'datePicker',
            filterIcon: 'dateIcon',
            customRender: 'planProductTime'
        },
    },
    {
        title: '生产商品编号',
        dataIndex: 'goodsCode',
        ellipsis: true,
        width: 180,
        searchIndex: 'goodsCode',
        scopedSlots: {
            filterDropdown: 'searchDropdown',
            filterIcon: 'searchIcon', customRender: 'goodsCode'
        },
    },
    {
        title: '商品名称',
        dataIndex: 'goodsName',
        width: 180,
        ellipsis: true,
        scopedSlots: {
            customRender: 'goodsName',
        },
    },
    {
        title: '规格',
        dataIndex: 'spec',
        width: 180,
        ellipsis: true,
        searchIndex: 'spec',
        scopedSlots: {
            filterDropdown: 'searchDropdown',
            filterIcon: 'searchIcon', customRender: 'spec'
        },
    },
    {
        title: '生产数量',
        dataIndex: 'planProductNumUnitText',
        width: 180,
        ellipsis: true,
        scopedSlots: {
            customRender: 'planProductNumUnitText',
        },
    },
    {
        title: '承诺交期',
        dataIndex: 'promiseDate',
        ellipsis: true,
        width: 180,
        searchIndex: 'promiseDate',
        scopedSlots: {
            filterDropdown: 'datePicker',
            filterIcon: 'dateIcon',
            customRender: 'promiseDate'
        },
    },
    {
        title: '销售合同编号',
        dataIndex: 'contractCode',
        ellipsis: true,
        width: 180,
        searchIndex: 'contractCode',
        scopedSlots: {
            filterDropdown: 'searchDropdown',
            filterIcon: 'searchIcon', customRender: 'contractCode'
        },
    },
    {
        title: '生产订单提交时间',
        dataIndex: 'createdTime',
        ellipsis: true,
        width: 180,
        searchIndex: 'createdTime',
        scopedSlots: {
            filterDropdown: 'datePicker',
            filterIcon: 'dateIcon', customRender: 'createdTime'
        },
    },
    {
        title: '提交人',
        dataIndex: 'createdByText',
        ellipsis: true,
        width: 180,
        searchIndex: 'createdBy',
        multi: true,
        scopedSlots: {
            filterDropdown: 'selectPeople',
            filterIcon: 'dateIcon',
            customRender: 'createdByText',
        },
    },
    // {
    //     fixed: 'right',
    //     title: '操作',
    //     align: 'left',
    //     width: 200,
    //     dataIndex: 'actions',
    //     scopedSlots: { customRender: 'actions' },
    // },
]
export let allColumn = [
    {
        title: '生产订单编号',
        dataIndex: 'code',
        ellipsis: true,
        fixed: 'left',
        width: 200,
        searchIndex: 'code',
        scopedSlots: {
            filterDropdown: 'searchDropdown',
            filterIcon: 'searchIcon',
            customRender: 'code',
        },
    },
    {
        title: '生产负责人',
        dataIndex: 'chargeUserIdText',
        ellipsis: true,
        fixed: 'left',
        width: 180,
        searchIndex: 'chargeUserId',
        multi: true,
        scopedSlots: {
            filterDropdown: 'selectPeople',
            filterIcon: 'dateIcon',
            customRender: 'chargeUserIdText',
        },
    },
    {
        title: '工艺路线',
        dataIndex: 'craftName',
        ellipsis: true,
        fixed: 'left',
        width: 180,
        searchIndex: 'craftName',
        scopedSlots: {
            filterDropdown: 'searchDropdown',
            filterIcon: 'searchIcon',
            customRender: 'craftName'
        },
    },
    {
        title: '计划生产时间',
        dataIndex: 'planProductTime',
        ellipsis: true,
        fixed: 'left',
        width: 180,
        searchIndex: 'planProductTime',
        scopedSlots: {
            filterDropdown: 'datePicker',
            filterIcon: 'dateIcon',
            customRender: 'planProductTime'
        },
    },
    {
        title: '生产商品编号',
        dataIndex: 'goodsCode',
        ellipsis: true,
        width: 180,
        searchIndex: 'goodsCode',
        scopedSlots: {
            filterDropdown: 'searchDropdown',
            filterIcon: 'searchIcon', customRender: 'goodsCode'
        },
    },
    {
        title: '商品名称',
        dataIndex: 'goodsName',
        width: 180,
        ellipsis: true,
        scopedSlots: {
            customRender: 'goodsName',
        },
    },
    {
        title: '规格',
        dataIndex: 'spec',
        width: 180,
        ellipsis: true,
        searchIndex: 'spec',
        scopedSlots: {
            filterDropdown: 'searchDropdown',
            filterIcon: 'searchIcon', customRender: 'spec'
        },
    },
    {
        title: '生产数量',
        dataIndex: 'planProductNumUnitText',
        width: 180,
        ellipsis: true,
        scopedSlots: {
            customRender: 'planProductNumUnitText',
        },
    },
    {
        title: '承诺交期',
        dataIndex: 'promiseDate',
        ellipsis: true,
        width: 180,
        searchIndex: 'promiseDate',
        scopedSlots: {
            filterDropdown: 'datePicker',
            filterIcon: 'dateIcon',
            customRender: 'promiseDate'
        },
    },
    {
        title: '销售合同编号',
        dataIndex: 'contractCode',
        ellipsis: true,
        width: 180,
        searchIndex: 'contractCode',
        scopedSlots: {
            filterDropdown: 'searchDropdown',
            filterIcon: 'searchIcon', customRender: 'contractCode'
        },
    },
    {
        title: '生产订单提交时间',
        dataIndex: 'createdTime',
        ellipsis: true,
        width: 180,
        searchIndex: 'createdTime',
        scopedSlots: {
            filterDropdown: 'datePicker',
            filterIcon: 'dateIcon', customRender: 'createdTime'
        },
    },
    {
        title: '提交人',
        dataIndex: 'createdByText',
        ellipsis: true,
        width: 180,
        searchIndex: 'createdBy',
        multi: true,
        scopedSlots: {
            filterDropdown: 'selectPeople',
            filterIcon: 'dateIcon',
            customRender: 'createdByText',
        },
    },
]

